function checkSubmit()
{
	//判断手机号,正则表达式两种引用方法：1.直接引用
	var testPhone = /^[1][3,4,5,6,7,8,9][0-9]{9}$/;
	//判断邮箱，2.构建函数
	//var testEmail = new RegExp('^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$');
	//判断密码
	var testPwd = /^(?![^a-zA-Z]+$)(?!\D+$).{6,12}$/;
	
	var user = document.getElementsByClassName('user')[0].value;
	var pwd = document.getElementsByClassName('pwd')[0].value;
	var pwd2 = document.getElementsByClassName('pwd')[1].value;
	var phone = document.getElementsByClassName('phone')[0].value;
	
	var promptDiv = document.getElementsByClassName('promptDiv');
	
	if (user == '' || pwd == '')
	{
		for (var i = 0; i < promptDiv.length; i++)
		{
			if (i == 0)
			{
				promptDiv[i].innerText = '账号或密码为空，请输入后再登录!';
			}
			else
			{
				promptDiv[i].innerText = '';
			}
		}
		
		return false;
	}
	else if (!testPwd.test(pwd))
	{
		for (var i = 0; i < promptDiv.length; i++)
		{
			if (i == 1)
			{
				promptDiv[i].innerText = '密码需在6-12位，只允许字母加数字!';
			}
			else
			{
				promptDiv[i].innerText = '';
			}
		}
		
		return false;
	}
	else if (pwd != pwd2)
	{
		for (var i = 0; i < promptDiv.length; i++)
		{
			if (i == 2)
			{
				promptDiv[i].innerText = '两次输入密码不一样，请重新输入!';
			}
			else
			{
				promptDiv[i].innerText = '';
			}
		}
		
		return false;
	}
	else if (!testPhone.test(phone))
	{
		for (var i = 0; i < promptDiv.length; i++)
		{
			if (i == 3)
			{
				promptDiv[i].innerText = '手机号格式不正确，请重新输入!';
			}
			else
			{
				promptDiv[i].innerText = '';
			}
		}
		
		return false;
	}
	else
	{
		return true;
	}
}